﻿<?xml version="1.0" encoding="utf-8" ?>
<Form Name="MyForm" ValidationSummary="true" SuccessPage="/Pages/Success.aspx">
    <FieldSet Label="Main">
      

        <Field Label="Arbitrary Radio Button" Type="RadioButton">
            <Validator Type="RequiredFieldValidator" Text="*" ErrorMessage="Please select the arbitrary radio button" Display="Dynamic"/>
        </Field>

        <Field Label="Title" Type="RadioButtonList">
            <Items>
                <Item Text="Mr" Value="Mr" />
                <Item Text="Mrs" Value="Mrs" />
                <Item Text="Miss" Value="Miss" />
            </Items>
            <Validator Type="RequiredFieldValidator" Text="*" ErrorMessage="Please select your title" Display="Dynamic"/>
        </Field>




        <Field Label="First Name" Type="TextBox">
            <Validator Type="RequiredFieldValidator" Text="*" ErrorMessage="Please enter a first name" Display="Dynamic"/>
        </Field>

        <Field Label="Last Name" Type="TextBox">
            <Validator Type="RequiredFieldValidator" Text="*" ErrorMessage="Please enter a last name" />
            <Validator Type="RegularExpressionValidator" Text="*" ErrorMessage="Please enter letters only" ValidationExpression=".*" Display="Dynamic"/>
        </Field>


        <Field Label="Street Type" Type="DropDownList">
            <Items>
                <Item Text="Please select" Value="" />
                <Item Text="Avenue" Value="Avenue" />
                <Item Text="Road" Value="Road" />
                <Item Text="Street" Value="Street" />
            </Items>
            <Validator Type="RequiredFieldValidator" Text="*" ErrorMessage="Please select a street type" Display="Dynamic"/>
        </Field>

        <!--<Field Label="File Upload" Type="FileUpload" ValidExtensions="jpg,gif">
            <Validator Type="RequiredFieldValidator" Text="*" ErrorMessage="Please select a file to upload" Display="Dynamic"/>
        </Field>-->

    </FieldSet>
</Form>